package com.modern.js.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.modern.js.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.modern.js.pojo.AssistPojo;
import io.swagger.models.auth.In;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author PIGS
 * @since 2020-03-23
 */
public interface IEmployeeService extends IService<Employee> {
   //根据员工Id查询部员工信息
   List<AssistPojo> selectById(Integer empId);
   //添加功能
   int register(Employee employee,Integer roleId);
   //修改功能
   int employeeUpdate(Employee employee,Integer roleId,Integer deptId);
   //查询全部员工信息
   IPage<Employee> selectList(Page<Employee> page,String empName,String createTime);
   //根据员工名称查询部员工信息
   Employee selectByName(String empName);

   int updatePerson(Employee employee);
}
